﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 基于WPF的电缆采样数据分析系统.Models.Dbs
{
    /// <summary>
    /// 邀请码生成记录
    /// </summary>
    [Table("InvitationCodeRecord")]
    public class InvitationCodeRecord
    {
        /// <summary>
        /// 邀请码Id
        /// </summary>
        [Key]
        public int Iid { get; set; }

        /// <summary>
        /// 邀请者
        /// </summary>
        public int InviterId { get; set; }

        /// <summary>
        /// 注册者
        /// </summary>
        public int RegisterId { get; set; }

        /// <summary>
        /// 邀请码
        /// </summary>
        public string InvitationCodeInfo { get; set; }

        /// <summary>
        /// 生成时间
        /// </summary>
        public DateTime GenerationTime { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime RegistrationTime { get; set; }

        /// <summary>
        /// 是否使用 0为未使用, 1为使用
        /// </summary>
        public int IsUsed { get; set; } = 0;
    }
}
